<?php

require_once dirname(__FILE__).'/../lib/articuloGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/articuloGeneratorHelper.class.php';

/**
 * articulo actions.
 *
 * @package    blog
 * @subpackage articulo
 * @author     Juaning
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class articuloActions extends autoArticuloActions
{
	public function executeIndex() {
		$this->forward('articulo', 'listar');
	}
	public function executeListar()
	{
		//$c = new Criteria();
		//$articulos = ArticuloPeer::doSelect($c);
		$c = Doctrine_Query::Create()
			->select('bg.titulo,bg.contenido')
			->from ('BlogArticulo bg');
		//);
		
		$articulos = $c->fetchArray();
		
		$this->articulos = $articulos;
	}
	
	public function executeMostrar()
	{
		
	}
}
